Simplify condition (this is just an else branch)

Signed-off-by: Michal Čihař <michal@cihar.com>
Share code for rending correct page after export

Signed-off-by: Michal Čihař <michal@cihar.com>