889 fix form search

Implements search functionality for forms on project page, closes #889
For this line I need the default ```nil``` value provided on the ```:else``` branch, .i.e if query is nil remove the element ```[:p#empty-query]``` by equating to nil.