Fix for unsubscribe before subscribe scenario

If mqtt client send unsubscribe message before any subscribe message. The (!sub || !sub.handler) expression would raise an exception.