Added some checks for None before hitting the bmrblib code.
This gives more informative error messages.
Authored by: bugman 2009-03-06
Parent: [r8912]
Child: [r8914]