Fixed problem with rebuildMetadata not checking for null/zero on apiKeyIds returned from the Facet_Location table.  This was causing crashes when executing /api/admin/<user>/metadata/rebuild API calls