Fixes issue where error message was not correctly displayed if remote notifications were not registered