Random (failed) attempts to fix entitymanager null