Add an array sanity check to badgeos_get_user_achievements(), should fix #109