Fix localisationManager crashing in Firefox

#92