Fixed several instances where code was running inside a Q_ASSERT.

This led to the code not being compiled when the package is compiled as RELEASE
instead of DEBUG.

This is a partial fix in reference to https://github.com/TauLabs/TauLabs/issues/223.