Added additional error-checking code; fixed bug to make injecting modelbuilder into actions optional.
Added additional error-checking code; fixed bug to make injecting modelbuilder into actions optional.

jtibble/slimui,jtibble/slimui