Issue #1817970 by codycraven, moltra: Fix fatal error in associated core when number of entities set to 0.