Update views.py

https://bugs.freenas.org/issues/4439
Updated the file based on bugreport
https://bugs.freenas.org/attachments/567/pbi.bacula-sd.views.py.patch