ngRessource returning empty object immidiatly