Fix for issue #286

Edge case where orderByPriority errors in Safari and MobileSafari when filtering an array from firebase ref.