Fix entity modified returns false on empty strings