Fixed wrong null check for offset for double and float asserts