Minor bug fixes caught during code review.

Eliminate unused import. And PageFactory parameter should always be a non-null value.