This pull request fixes issue #11

**NOTE:** This pull request requires #12 to be approved first as it contains unit testing required for travis build.
This fixes #11 Notice: Undefined index: total when doing theme search