Resolved issue #4

If category tree contained NULL value exception was thrown due to
array_key_exists
Added object test in controller

Misconfiguration in plugin (no parent categories chosen) could lead to
fatal error