Added null check of page parameters