Update AudioCapture.java

To handle the pageNavigation error on onBeforeNavigate. As it is called during stop api and cancel API.