(MODULES-442) Correct isfragment behavior

The isfragment property had a few things incorrect with it.

- Any value passed to isfragment was considered `true`. This was compounded further by the next issue.
- When the read property was false, it was set to 'nil'. This caused `isfragment => false` to not work after the previous was fixed.