patch error messages in log

[Wed May 07 09:08:40 2014] [error] [client 131.152.226.242] PHP Notice:  Undefined offset: 0 in /usr/local/vufind/httpd/themes/swissbib/templates/search/results/available.phtml on line 8, refer
er: https://www.swissbib.ch/Search/Results?lookfor=Gesch%C3%A4ftsgeheimnis
[Wed May 07 09:08:40 2014] [error] [client 131.152.226.242] PHP Warning:  preg_grep() expects parameter 2 to be array, null given in /usr/local/vufind/httpd/themes/swissbib/templates/search/res
ults/available.phtml on line 8, referer: https://www.swissbib.ch/Search/Results?lookfor=Gesch%C3%A4ftsgeheimnis
[Wed May 07 09:08:40 2014] [error] [client 131.152.226.242] PHP Notice:  Undefined offset: 0 in /usr/local/vufind/httpd/themes/swissbib/templates/search/results/available.phtml on line 9, refer
er: https://www.swissbib.ch/Search/Results?lookfor=Gesch%C3%A4ftsgeheimnis
[Wed May 07 09:08:40 2014] [error] [client 131.152.226.242] PHP Warning:  preg_grep() expects parameter 2 to be array, null given in /usr/local/vufind/httpd/themes/swissbib/templates/search/res
ults/available.phtml on line 9, referer: https://www.swissbib.ch/Search/Results?lookfor=Gesch%C3%A4ftsgeheimnis