Issue-820: 'ticketId cannot be null' for a Facebook authentication

Fixed the problem by adding the ticket granting ticket in flow scope. Updated the test accordingly.
We should probably merge these two methods into one: `putTicketGrantingTicketInRequestContext`