Better error handling for prepareNibs