[RFC] fix expiration

Added a check if expiration is not null before adding to the request