added better message when nil is passed to constructor of page-object