fix potential NPE if an entity doesn't already have the given component