Fix error 500 on invalid downloads page number