Modification for Devise sign out bug in Passenger