As discussed at https://gerrit.wikimedia.org/r/182337, Special:UserProfile shouldn't live within the MobileFrontend extension.
Possible options to consider: put Special:UserProfile in MediaWiki core or change user page behavior so that a profile is auto-generated/displayed for (non-existent) user pages (i.e., /wiki/User:Example would show basic user info automagically).