[firefox] Prevent error when error callback is missing