Added nil check for revisions to avoid failure on initial deploy