Adding null checks for request metrics