page.py: base isEmptyCategory on cat.categoryinfo

No change of functionality.
Test is based on check of properties rather than try to retrieve
content.

Tests added.

Change-Id: I6070c72882fbcd94a5526a158a9827738386bf51
Merge "page.py: base isEmptyCategory on cat.categoryinfo"