Fix retval of entity.get_staticdata beeing lost while profiling is enabled